<script lang="ts" setup>
import type { Ref } from 'vue'
import { inject } from 'vue'

const isClickInside = inject<Ref<boolean>>('isClickInside') as Ref<boolean>

function onclick() {
  isClickInside.value = true
}
</script>
<template>
  <div class="OnClickInside" @click="onclick">
    <slot></slot>
  </div>
</template>

<style lang="scss">
.OnClickInside {
  height: 0;
}
</style>
